package com.juc.semaphore.semaphore10;

public class MyThreadNoFair extends Thread {

    private MyServiceNoFair serviceNoFair;

    public MyThreadNoFair(MyServiceNoFair serviceNoFair) {
        super();
        this.serviceNoFair = serviceNoFair;
    }

    @Override
    public void run() {
        System.out.println("threadName= " + this.getName() + " 启动了！ ");
       serviceNoFair.testMethod();
    }
}
